home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / asm_n_z.zip / WILD.DOC < prev    next >
Text File  |  1988-03-16  |  5KB  |  114 lines

  1.  
  2.                            Documentation for WILD.COM
  3.  
  4.                   a public domain program by Charles Lazo III
  5.  
  6.      WILD is a program that you can use to run other programs or DOS commands
  7.      and also supply them with wild card parameters even though the commands
  8.      do not support them.  There is also a degree of serendipity involved in
  9.      the use of WILD; I shall explain some of it--you may find more.
  10.  
  11.      Assuming that PROG.EXE is a program that can run under DOS, then the
  12.      command
  13.  
  14.                               WILD PROG *.*
  15.  
  16.      entered at the DOS prompt will run the program PROG once for each file
  17.      which is in the current directory.  For example, if these three files
  18.  
  19.                               GOODMORN.AM
  20.                               GOODNIGH.PM
  21.                               ASLEEP.NOW
  22.  
  23.      were the only files in the current directory and the programs WILD.COM
  24.      and PROG.EXE were in one of the directories given in the your PATH
  25.      environment variable, then entering WILD PROG *.* at the DOS prompt
  26.      would automate the process of entering these three lines in succession
  27.      at the DOS prompt
  28.  
  29.                               PROG GOODMORN.AM
  30.                               PROG GOODNIGH.PM
  31.                               PROG ASLEEP.NOW
  32.  
  33.      Of course any combination of wild cards that cause matches with files
  34.      in the current directory can be used with WILD.  Examples are:
  35.  
  36.                               WILD PROG GO*.??
  37.                               WILD TYPE *.TXT
  38.                               WILD DEL *.*     (caution:  no warning!)
  39.  
  40.      Can you guess what would happen if you were to enter
  41.  
  42.                               WILD *.*
  43.  
  44.      at the prompt?  Well, so you don't have to risk this yourself I'll tell
  45.      you.  WILD will treat each file in your current directory as a program
  46.      (or batch file) and attempt to run it!  (An example of serendipity.)
  47.  
  48.      Also WILD is on the lookout for the presence of the environment variable
  49.      WILD.  The settings for this variable that affect the operation of WILD
  50.      are
  51.  
  52.                               QUERY     causes WILD to prompt you with
  53.                                         "(Y/N/A)?" for each matching file.
  54.                                         That is, Yes (run the program with
  55.                                         the file given), No (do not run
  56.                                         the program with the file given),
  57.                                         and Abort (stop and return to DOS).
  58.  
  59.                               NOEXT     causes WILD to leave out file
  60.                                         extensions when using filenames
  61.                                         from the current directory.
  62.  
  63.                               H         Allows matches to be made with
  64.                                         hidden files in addition to others.
  65.  
  66.                               S         Allows matches to be made with
  67.                                         system files in addition to others.
  68.  
  69.                               D         Allows matches to be made with
  70.                                         directory files in addition to
  71.                                         others.
  72.  
  73.      To set the WILD environment variable enter at the DOS prompt, for
  74.      example (capitalization is not significant),
  75.  
  76.                               set wild=query h d
  77.  
  78.      And then when you run WILD it will prompt you concerning the running
  79.      of the given command with each filename in the current directory that
  80.      is either an ordinary file, a hidden file, or a directory file.
  81.  
  82.      It matters not how these values appear in the WILD environment variable.
  83.      E.g., all of these will have the same effect on the operation of WILD:
  84.  
  85.                               set wild= QUERY noext H S d
  86.                               SET WILD=QueryNoextHsD
  87.                               set WILD= query, noext, h, s, d
  88.  
  89.      Finally, you can use input/output redirection and piping with WILD.
  90.  
  91.      Assuming that there are no bugs remaining in this program (possible,
  92.      but I think doubtful considering the many bugs which I found and
  93.      eliminated), there is still the possibility that you may obtain results
  94.      which are unexpected (when that's good, then it's serendipity, when bad
  95.      it's ouch!), so be CAREFUL.  One thing that I have thought of that may
  96.      lead to strange results when using WILD with some programs is that WILD
  97.      passes its FCB's to the program it EXECs and that may not be what the
  98.      program which you are running expects.  So my advice is to use only
  99.      files which are backuped when trying anything new with WILD.
  100.  
  101.      I really have no idea of the kind of appeal that this program will have
  102.      or what you may think would be nice features for a possible update, so
  103.      don't hesitate to let me know if you like or dislike the program.
  104.  
  105.      I think I have made it fairly clear that you can get yourself into
  106.      trouble with WILD so I make no guarantee of its efficacy for any purpose
  107.      and take no responsibility for your use of it.
  108.  
  109.      I can be reached on CompuServe via User ID 72210,17 or via US Snail at
  110.  
  111.                               Charles Lazo III
  112.                               P.O. Box 452
  113.                               Hohenwald, TN 38462
  114.